export default {
  getAllCount(state) {
    var c = 0;
    state.car.forEach(item => {
      c += item.count
    })
    return c
  },
  //价格累计
  getAllPrice(state) {
    var p = 0;
    state.car.forEach(item => {
      p += item.price;
    })
    return p
  }
}